package com.galengao.springboot.validateAndResponse;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 状态码枚举
 *
 * @author GalenGao
 * @version Id: CodeEnum.java, v 0.1 2022/5/31 9:57 GalenGao Exp $$
 */
@AllArgsConstructor
@Getter
@SuppressWarnings("all")
public enum CodeEnum {

    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败"),
    UNAUTHORIZED(403,"无权限操作");

    private Integer code;

    private String message;
}
